function A = getMat( filename )

fid = fopen( filename,'rb');



try
    m = fread(fid, 1,'int32');
    n = fread(fid, 1,'int32');  
    data = fread(fid, m*n,'float32');
    A = reshape(data,[n m]);
catch
end

fclose(fid);